<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<title>内容管理</title>
	<link href="${ctxStatic}/scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css">
	<link href="${ctxStatic}/admin/skins/default/style.css" rel="stylesheet" type="text/css">
	<link href="${ctxStatic}/css/pagination.css" rel="stylesheet" type="text/css">
	<link href="${ctxStatic}/admin/skins/common.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="${ctxStatic}/scripts/jquery/jquery-1.11.2.min.js"></script>
	<script type="text/javascript" src="${ctxStatic}/scripts/jquery/jquery.lazyload.min.js"></script>
	<script type="text/javascript" src="${ctxStatic}/scripts/artdialog/dialog-plus-min.js"></script>
	<script type="text/javascript" charset="utf-8" src="${ctxStatic}/admin/scripts/laymain.js"></script>
	<script type="text/javascript" charset="utf-8" src="${ctxStatic}/admin/scripts/common.js"></script>
	<script type="text/javascript" src="${ctxStatic}/scripts/flexigrid/flexigrid.js" ></script>
	<script type="text/javascript">
	$(function() {
		//图片延迟加载
		$(".pic img").lazyload({
			effect : "fadeIn"
		});
		//点击图片链接
		$(".pic img").click(function() {
			var linkUrl = $(this).parent().parent().find(".foot a")
					.attr("href");
			if (linkUrl != "") {
				location.href = linkUrl; //跳转到修改页面
			}
		});

		$("#flexigid")
				.flexigrid(
						{
							sortname : 'ProductCode',
							sortorder : 'desc',
							usepager : true, //是否分页
							useRp : true,
							rpOptions : [ 20, 30, 50, 100, 200 ],
							rp : 30,
							colModel : [
									{
										display : '<input type=\"checkbox\"  onclick=\"checkAll(this);\" id=\"check_all\" >',
										name : 'cheackll',
										etmname : 'cheackll',
										width : 30,
										sortable : false,
										align : 'center'
									},
									{
										display : '物品编码',
										name : 'ProductCode',
										etmname : 'ProductCode',
										width : 100,
										sortable : true,
										align : 'center'
									},
									{
										display : '物品名称',
										name : 'ProductName',
										etmname : 'ProductName',
										width : 100,
										sortable : false,
										align : 'center'
									},
									{
										display : '物品分类',
										name : 'CategoryName',
										etmname : 'CategoryName',
										width : 100,
										sortable : false,
										align : 'Center'
									},
									{
										display : '仓库',
										name : 'StorehouseName',
										etmname : 'StorehouseName',
										width : 100,
										sortable : false,
										align : 'Center'
									},
									{
										display : '库存',
										name : 'InventoryCount',
										etmname : 'InventoryCount',
										width : 60,
										sortable : true,
										align : 'Center'
									},
									{
										display : '折旧程度',
										name : 'DepreciationName',
										etmname : 'DepreciationName',
										width : 80,
										sortable : false,
										align : 'Center'
									},
									{
										display : '是否商品',
										name : 'IsMallProduct',
										etmname : 'IsMallProductName',
										width : 60,
										sortable : false,
										align : 'Center'
									},
									{
										display : '零售价（元）',
										name : 'IsMallProduct,SalePrice',
										etmname : 'SalePriceName',
										width : 80,
										sortable : false,
										align : 'Center'
									},
									{
										display : '可积分兑换',
										name : 'IsMallProduct,CanExchangePoint',
										etmname : 'CanExchangePointName',
										width : 80,
										sortable : false,
										align : 'Center'
									},
									{
										display : '所需积分数',
										name : 'CanExchangePoint,ExchangePoints',
										etmname : 'ExchangePointsName',
										width : 80,
										sortable : false,
										align : 'Center'
									} ],
							width : $(window).width(),
							height : $(window).height() - 400 + 95

						});
	});
</script>
</head>
	
	<body class="mainbody">
		<form method="post" action="article_list.aspx?channel_id=6" id="form1">
			<!--导航栏-->
			<div class="location">
				<a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
				<a href="../center.aspx" class="home"><i></i><span>首页</span></a> <i
					class="arrow"></i> <span>内容列表</span>
			</div>
			<!--/导航栏-->
	
			<!--工具栏-->
			<div id="floatHead" class="toolbar-wrap" style="height: 52px;">
				<div class="toolbar" style="width: 1139px;">
					<div class="box-wrap">
						<a class="menu-btn"></a>
						<div class="l-list">
							<ul class="icon-list">
								<li><a class="add"
									href="article_edit.aspx?action=Add&amp;channel_id=6"><i></i><span>新增</span></a></li>
								<li><a id="btnSave" class="save"
									href="javascript:__doPostBack('btnSave','')"><i></i><span>保存</span></a></li>
								<li><a
									onclick="return ExePostBack('btnAudit','审核后前台将显示该信息，确定继续吗？');"
									id="btnAudit" class="lock"
									href="javascript:__doPostBack('btnAudit','')"><i></i><span>审核</span></a></li>
								<li><a class="all" href="javascript:;"
									onclick="checkAll(this);"><i></i><span>全选</span></a></li>
								<li><a onclick="return ExePostBack('btnDelete');"
									id="btnDelete" class="del"
									href="javascript:__doPostBack('btnDelete','')"><i></i><span>删除</span></a></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<!--/工具栏-->
	
			<!--列表-->
			<table class="search">
				<tbody>
					<tr>
						<td class="textAlignRight" style="width: 80px;">物品编码：</td>
						<td class="borderRight" style="width: 165px;"><input
							name="tbCode" type="text" id="tbCode" class="int"></td>
						<td class="textAlignRight" style="width: 80px;">物品名称：</td>
						<td class="borderRight" style="width: 165px;"><input
							name="tbName" type="text" id="tbName" class="int"></td>
						<td class="textAlignRight" style="width: 80px;">物品分类：</td>
						<td class="borderRight" style="width: 165px;">
							<div class="rule-single-select single-select">
								<div class="boxwrap">
									<a class="select-tit" href="javascript:;"><span>请选择</span><i></i></a>
									<div class="select-items" style="display: none;">
										<ul>
											<li class="selected">请选择</li>
											<li>|—饮料</li>
											<li>|—|—3</li>
											<li>|—固定资产</li>
											<li>|—赠品</li>
											<li>|—|—娃娃</li>
											<li>|—手工</li>
											<li>|—桌椅</li>
											<li>|—手机套111</li>
											<li>|—医疗水</li>
											<li>|—123</li>
											<li>|—医疗水</li>
											<li>|—低值易耗</li>
											<li>|—医疗水</li>
											<li>|—办公费</li>
											<li>|—医疗水</li>
											<li>|—玩具</li>
											<li>|—书籍</li>
											<li>|—教具</li>
											<li>|—办公用品</li>
											<li>|—|—毛笔</li>
										</ul>
									</div>
									<i class="arrow" style="display: none;"></i>
								</div>
								<select name="ddlCategory" id="ddlCategory" class="int"
									style="display: none;">
									<option value="">请选择</option>
									<option value="1">|—饮料</option>
									<option value="2">|—|—3</option>
									<option value="3">|—固定资产</option>
									<option value="4">|—赠品</option>
									<option value="5">|—|—娃娃</option>
									<option value="6">|—手工</option>
									<option value="7">|—桌椅</option>
									<option value="8">|—手机套111</option>
									<option value="9">|—医疗水</option>
									<option value="10">|—123</option>
									<option value="11">|—医疗水</option>
									<option value="12">|—低值易耗</option>
									<option value="13">|—医疗水</option>
									<option value="14">|—办公费</option>
									<option value="15">|—医疗水</option>
									<option value="16">|—玩具</option>
									<option value="17">|—书籍</option>
									<option value="18">|—教具</option>
									<option value="19">|—办公用品</option>
									<option value="20">|—|—毛笔</option>
								</select>
							</div>
						</td>
					</tr>
					<tr>
						<td class="textAlignRight">所在仓库：</td>
						<td class="borderRight">
							<div class="rule-single-select single-select">
								<div class="boxwrap">
									<a class="select-tit" href="javascript:;"><span>请选择</span><i></i></a>
									<div class="select-items" style="display: none;">
										<ul>
											<li class="selected">请选择</li>
											<li>餐吧</li>
											<li>次品仓</li>
											<li>正废品</li>
											<li>正品仓</li>
											<li>手工</li>
											<li>测试</li>
										</ul>
									</div>
									<i class="arrow" style="display: none;"></i>
								</div>
								<select name="ddlStorehouse" id="ddlStorehouse" class="int"
									style="display: none;">
									<option value="">请选择</option>
									<option value="1">餐吧</option>
									<option value="2">次品仓</option>
									<option value="3">正废品</option>
									<option value="4">正品仓</option>
									<option value="5">手工</option>
									<option value="6">测试</option>
	
								</select>
							</div>
						</td>
						<td class="textAlignRight">折旧程度：</td>
						<td class="borderRight">
							<div class="rule-single-select single-select">
								<div class="boxwrap">
									<a class="select-tit" href="javascript:;"><span>请选择</span><i></i></a>
									<div class="select-items" style="display: none;">
										<ul>
											<li class="selected">请选择</li>
											<li>一成新</li>
											<li>全新</li>
											<li>八成新</li>
											<li>测试</li>
											<li>六成新</li>
											<li>五成新</li>
											<li>四成新</li>
											<li>七成新</li>
											<li>二成新</li>
											<li>九成新</li>
											<li>三成新</li>
										</ul>
									</div>
									<i class="arrow" style="display: none;"></i>
								</div>
								<select name="ddlDereciation" id="ddlDereciation" class="int"
									style="display: none;">
									<option value="">请选择</option>
									<option value="1">一成新</option>
									<option value="2">全新</option>
									<option value="3">八成新</option>
									<option value="4">测试</option>
									<option value="5">六成新</option>
									<option value="6">五成新</option>
									<option value="7">四成新</option>
									<option value="8">七成新</option>
									<option value="9">二成新</option>
									<option value="10">九成新</option>
									<option value="11">三成新</option>
	
								</select>
							</div>
						</td>
						<td class="textAlignRight">是否商品：</td>
						<td class="borderRight">
							<div class="rule-single-select single-select">
								<div class="boxwrap">
									<a class="select-tit" href="javascript:;"><span>请选择</span><i></i></a>
									<div class="select-items" style="display: none;">
										<ul>
											<li class="selected">请选择</li>
											<li>是</li>
											<li>否</li>
										</ul>
									</div>
									<i class="arrow" style="display: none;"></i>
								</div>
								<select name="ddlIsMallProduct" id="ddlIsMallProduct" class="int"
									style="display: none;">
									<option value="-1">请选择</option>
									<option value="1">是</option>
									<option value="0">否</option>
	
								</select>
							</div>
						</td>
						<td rowspan="2" style="padding-left: 25px;"><input
							type="button" class="btn_search" value="搜 索" id="btnSearch"
							style="cursor: default;"></td>
					</tr>
				</tbody>
			</table>
			<table id="flexigid">
			    <tbody>
				    <tr>
				        <td align="center"><input type="checkbox" name="check_all"/></td>
				        <td align="center">sp00093</td>
				        <td align="center">嘟嘟</td>
				        <td align="center">教具</td>
				        <td align="center">正品仓</td>
				        <td align="center">0</td>
				        <td align="center">八成新</td>
				        <td align="center" style="color:Green">是</td>
				        <td align="center">35.00</td>
				        <td align="center" style="color:Green">否</td>
				        <td align="center">-</td>
				    </tr>
			    </tbody>
			</table>
			<!--/列表-->
		</form>
	</body>
</html>
